package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

//选项表
@Document(collection ="options" )
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Options implements Serializable {
    private static final long serialVersionUID = 6381465480124872569L;
    @Id
    private ObjectId id;//主键
    private Integer qid;//问卷id
    private Integer topId;//试题id
    private String keyId;//选项编号
    private String options;//选项内容
    private Double score;//每个选项的分值
}
